package com.lm.jackson.model;

import com.fasterxml.jackson.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class User {

    private Long id;

    @JsonProperty("username")
    private String name;

    @JsonIgnore
    private String password;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String email;
}
